#pragma once

#include "shape.h"

namespace g2 {

class rectangle : public shape {
public:
	rectangle(const vector & center, double su, double sv);
public:
	virtual region flatten(double h) const;
	virtual vector center() const;
	virtual box bounds() const;
	virtual void translate(const vector &);
	virtual void rotate(const vector & center, double angle);
private:
	vector	_center;
	double	_su, _sv;
	double	_angle;
};

} // g2
